package cn.coisini.model.common.constants;

/**
 * @author xiangshaw
 * Description: redis 常量
 */
public interface RedisConstants {
    /**
     * redis配置
     */
    String REDIS_CONFIG_PREFIX = "redis:config";

    /**
     * ip限流key
     */
    String IP_RATE_LIMITER_KEY = "rate_limiter:ip:";

    /**
     * ip限流阈值key
     */
    String IP_QPS_THRESHOLD_KEY = "rate_limiter:ip:qps_threshold";

    /**
     * 令牌桶的过期时间key
     */
    String IP_RATE_LIMIT_EXPIRY_KEY = "rate_limiter:ip:expire_time";

    /**
     * 邮箱验证码前缀
     */
    String EMAIL_CODE_PREFIX = "email:code:";

    /**
     * 手机验证码前缀
     */
    String MOBILE_CODE_PREFIX = "mobile:code:";

}
